var Mock = require('mockjs');

function membersList() {
    return Mock.mock({
        'list|10': [{ 'id|+1': 1, name: '@casy', 'username': 'case2365', 'created_at': '@DATETIME("yyyy-MM-dd HH:mm:ss")' }]
    })
}
let list = membersList();

export default {
    'GET /v1/members/list': (req, res) => {
        res.send({
            code: 0,
            ...list,
            total: list.list.length,
            status: 'success',
            msg: ''
        })
    },
    'POST /v1/members/add': (req, res) => {
        res.send({
            code: 0,
            status: 'success'
        })
    }
}